<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: CUdpIoServer类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="class_c_udp_io_server-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CUdpIoServer类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>udp io无连接服务类  
 <a href="class_c_udp_io_server.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aba7476fd84b8f6ae5226c806737e742c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_server.html#aba7476fd84b8f6ae5226c806737e742c">CUdpIoServer</a> (bool isWriteLog=false)</td></tr>
<tr class="memdesc:aba7476fd84b8f6ae5226c806737e742c"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造一个udp io服务类  <a href="class_c_udp_io_server.html#aba7476fd84b8f6ae5226c806737e742c">更多...</a><br /></td></tr>
<tr class="separator:aba7476fd84b8f6ae5226c806737e742c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa999f1a2010c0133cc8ff58507a8796e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_server.html#aa999f1a2010c0133cc8ff58507a8796e">~CUdpIoServer</a> ()</td></tr>
<tr class="memdesc:aa999f1a2010c0133cc8ff58507a8796e"><td class="mdescLeft">&#160;</td><td class="mdescRight">销毁一个udp服务类  <a href="class_c_udp_io_server.html#aa999f1a2010c0133cc8ff58507a8796e">更多...</a><br /></td></tr>
<tr class="separator:aa999f1a2010c0133cc8ff58507a8796e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6375ef4065897ac0207ea4d151c0a7b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_sock_error.html">CSockError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_server.html#ab6375ef4065897ac0207ea4d151c0a7b">Init</a> (<a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;sock, bool isServer=false)</td></tr>
<tr class="memdesc:ab6375ef4065897ac0207ea4d151c0a7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化套接字与服务类设备进行绑定  <a href="class_c_udp_io_server.html#ab6375ef4065897ac0207ea4d151c0a7b">更多...</a><br /></td></tr>
<tr class="separator:ab6375ef4065897ac0207ea4d151c0a7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3488239966f8876f08488e873868eda6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_server.html#a3488239966f8876f08488e873868eda6">Run</a> ()</td></tr>
<tr class="memdesc:a3488239966f8876f08488e873868eda6"><td class="mdescLeft">&#160;</td><td class="mdescRight">运行服务  <a href="class_c_udp_io_server.html#a3488239966f8876f08488e873868eda6">更多...</a><br /></td></tr>
<tr class="separator:a3488239966f8876f08488e873868eda6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb53d7a1fa2182a80538d188880adc02"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_server.html#adb53d7a1fa2182a80538d188880adc02">Run_One</a> ()</td></tr>
<tr class="memdesc:adb53d7a1fa2182a80538d188880adc02"><td class="mdescLeft">&#160;</td><td class="mdescRight">运行一次服务  <a href="class_c_udp_io_server.html#adb53d7a1fa2182a80538d188880adc02">更多...</a><br /></td></tr>
<tr class="separator:adb53d7a1fa2182a80538d188880adc02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5ff63dd1a6754b019960a29920d572f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_server.html#ac5ff63dd1a6754b019960a29920d572f">NotifyStop</a> ()</td></tr>
<tr class="memdesc:ac5ff63dd1a6754b019960a29920d572f"><td class="mdescLeft">&#160;</td><td class="mdescRight">通知服务停止  <a href="class_c_udp_io_server.html#ac5ff63dd1a6754b019960a29920d572f">更多...</a><br /></td></tr>
<tr class="separator:ac5ff63dd1a6754b019960a29920d572f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4d4e0b20c08f1caf054dc91353a5460"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_server.html#ad4d4e0b20c08f1caf054dc91353a5460">IsStop</a> () const</td></tr>
<tr class="memdesc:ad4d4e0b20c08f1caf054dc91353a5460"><td class="mdescLeft">&#160;</td><td class="mdescRight">服务是否停止  <a href="class_c_udp_io_server.html#ad4d4e0b20c08f1caf054dc91353a5460">更多...</a><br /></td></tr>
<tr class="separator:ad4d4e0b20c08f1caf054dc91353a5460"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d6f189a31f74d0e6ea700f3298992c7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_server.html#a6d6f189a31f74d0e6ea700f3298992c7">WaitServerStop</a> ()</td></tr>
<tr class="memdesc:a6d6f189a31f74d0e6ea700f3298992c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">通知服务停止并等待  <a href="class_c_udp_io_server.html#a6d6f189a31f74d0e6ea700f3298992c7">更多...</a><br /></td></tr>
<tr class="separator:a6d6f189a31f74d0e6ea700f3298992c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfe6724dcb02aa6d623d06789c27286a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_basic_service.html">CBasicService</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_server.html#abfe6724dcb02aa6d623d06789c27286a">GetUdpServicePtr</a> ()</td></tr>
<tr class="memdesc:abfe6724dcb02aa6d623d06789c27286a"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取底层服务类  <a href="class_c_udp_io_server.html#abfe6724dcb02aa6d623d06789c27286a">更多...</a><br /></td></tr>
<tr class="separator:abfe6724dcb02aa6d623d06789c27286a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">投递一个接收请求</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>已绑定的套接字 </td></tr>
    <tr><td class="paramname">buff</td><td>接收缓冲 </td></tr>
    <tr><td class="paramname">addr</td><td>接收的地址信息 </td></tr>
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>用户传递的数据 </td></tr>
  </table>
  </dd>
</dl>
</div></td></tr>
<tr class="memitem:ab6977b751a2bcbde7853c0b4579656fe"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:ab6977b751a2bcbde7853c0b4579656fe"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_udp_io_server.html#ab6977b751a2bcbde7853c0b4579656fe">AsyncRecvfrom</a> (<a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, <a class="el" href="class_c_sock_addr.html">CSockAddr</a> *addr, Func func)</td></tr>
<tr class="separator:ab6977b751a2bcbde7853c0b4579656fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e162dc25b1c1a70986153e13e92809e"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:a0e162dc25b1c1a70986153e13e92809e"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_udp_io_server.html#a0e162dc25b1c1a70986153e13e92809e">AsyncRecvfrom</a> (<a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, <a class="el" href="class_c_sock_addr.html">CSockAddr</a> *addr, Func func, void *invoker)</td></tr>
<tr class="separator:a0e162dc25b1c1a70986153e13e92809e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">投递一个写请求</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>已绑定的套接字 </td></tr>
    <tr><td class="paramname">buff</td><td>发送缓冲 </td></tr>
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>用户传递的数据 </td></tr>
  </table>
  </dd>
</dl>
</div></td></tr>
<tr class="memitem:ad30ab9dab17e63e370f3a700071ecc34"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:ad30ab9dab17e63e370f3a700071ecc34"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_udp_io_server.html#ad30ab9dab17e63e370f3a700071ecc34">AsyncSendTo</a> (<a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, <a class="el" href="class_c_sock_addr.html">CSockAddr</a> *addr, const Func &amp;func)</td></tr>
<tr class="separator:ad30ab9dab17e63e370f3a700071ecc34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab22bf72ceac9ac9bbbc1f81b3de0cc3"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:aab22bf72ceac9ac9bbbc1f81b3de0cc3"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_udp_io_server.html#aab22bf72ceac9ac9bbbc1f81b3de0cc3">AsyncSendTo</a> (<a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, <a class="el" href="class_c_sock_addr.html">CSockAddr</a> *addr, const Func &amp;func, void *invoker)</td></tr>
<tr class="separator:aab22bf72ceac9ac9bbbc1f81b3de0cc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">投递一个中断请求</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>用户传递的数据 </td></tr>
  </table>
  </dd>
</dl>
</div></td></tr>
<tr class="memitem:ad2577dd5e8331ce337669104debe8cc2"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:ad2577dd5e8331ce337669104debe8cc2"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_udp_io_server.html#ad2577dd5e8331ce337669104debe8cc2">Post</a> (const Func &amp;func)</td></tr>
<tr class="separator:ad2577dd5e8331ce337669104debe8cc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a277eeefc4b1368f8868b2e49b11e76ba"><td class="memTemplParams" colspan="2">template&lt;class Func &gt; </td></tr>
<tr class="memitem:a277eeefc4b1368f8868b2e49b11e76ba"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_c_udp_io_server.html#a277eeefc4b1368f8868b2e49b11e76ba">Post</a> (const Func &amp;func, void *invoker)</td></tr>
<tr class="separator:a277eeefc4b1368f8868b2e49b11e76ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a9fea8deea1c69dfe4229cfe89d900b47"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_c_udp_server.html">CUdpServer</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_server.html#a9fea8deea1c69dfe4229cfe89d900b47">_service</a></td></tr>
<tr class="separator:a9fea8deea1c69dfe4229cfe89d900b47"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:a1a0e5074169384473110368a9c2fe617"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_io_server.html#a1a0e5074169384473110368a9c2fe617">delete_class_copy_operator</a> (<a class="el" href="class_c_udp_io_server.html">CUdpIoServer</a>)</td></tr>
<tr class="separator:a1a0e5074169384473110368a9c2fe617"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>udp io无连接服务类 </p>
<dl class="section remark"><dt>备注</dt><dd>若要使用连接发送功能，请使用CUdpIoClient类 </dd></dl>

<p class="definition">在文件 <a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a> 第 <a class="el" href="_udp_io_server_8h_source.html#l00011">11</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="aba7476fd84b8f6ae5226c806737e742c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba7476fd84b8f6ae5226c806737e742c">&#9670;&nbsp;</a></span>CUdpIoServer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CUdpIoServer::CUdpIoServer </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isWriteLog</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>构造一个udp io服务类 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">isWriteLog</td><td>是否打印内部调试日志 </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a> 第 <a class="el" href="_udp_io_server_8h_source.html#l00019">19</a> 行定义.</p>

</div>
</div>
<a id="aa999f1a2010c0133cc8ff58507a8796e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa999f1a2010c0133cc8ff58507a8796e">&#9670;&nbsp;</a></span>~CUdpIoServer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CUdpIoServer::~CUdpIoServer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>销毁一个udp服务类 </p>

<p class="definition">在文件 <a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a> 第 <a class="el" href="_udp_io_server_8h_source.html#l00024">24</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="ab6977b751a2bcbde7853c0b4579656fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6977b751a2bcbde7853c0b4579656fe">&#9670;&nbsp;</a></span>AsyncRecvfrom() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoServer::AsyncRecvfrom </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_c_sock_addr.html">CSockAddr</a> *&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Func&#160;</td>
          <td class="paramname"><em>func</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a> 第 <a class="el" href="_udp_io_server_8h_source.html#l00046">46</a> 行定义.</p>

</div>
</div>
<a id="a0e162dc25b1c1a70986153e13e92809e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e162dc25b1c1a70986153e13e92809e">&#9670;&nbsp;</a></span>AsyncRecvfrom() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoServer::AsyncRecvfrom </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_c_sock_addr.html">CSockAddr</a> *&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Func&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a> 第 <a class="el" href="_udp_io_server_8h_source.html#l00050">50</a> 行定义.</p>

</div>
</div>
<a id="ad30ab9dab17e63e370f3a700071ecc34"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad30ab9dab17e63e370f3a700071ecc34">&#9670;&nbsp;</a></span>AsyncSendTo() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoServer::AsyncSendTo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_c_sock_addr.html">CSockAddr</a> *&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Func &amp;&#160;</td>
          <td class="paramname"><em>func</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a> 第 <a class="el" href="_udp_io_server_8h_source.html#l00064">64</a> 行定义.</p>

</div>
</div>
<a id="aab22bf72ceac9ac9bbbc1f81b3de0cc3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab22bf72ceac9ac9bbbc1f81b3de0cc3">&#9670;&nbsp;</a></span>AsyncSendTo() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoServer::AsyncSendTo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_c_sock_addr.html">CSockAddr</a> *&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Func &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a> 第 <a class="el" href="_udp_io_server_8h_source.html#l00068">68</a> 行定义.</p>

</div>
</div>
<a id="a1a0e5074169384473110368a9c2fe617"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a0e5074169384473110368a9c2fe617">&#9670;&nbsp;</a></span>delete_class_copy_operator()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CUdpIoServer::delete_class_copy_operator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_io_server.html">CUdpIoServer</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="abfe6724dcb02aa6d623d06789c27286a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abfe6724dcb02aa6d623d06789c27286a">&#9670;&nbsp;</a></span>GetUdpServicePtr()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_basic_service.html">CBasicService</a>* CUdpIoServer::GetUdpServicePtr </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取底层服务类 </p>

<p class="definition">在文件 <a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a> 第 <a class="el" href="_udp_io_server_8h_source.html#l00124">124</a> 行定义.</p>

</div>
</div>
<a id="ab6375ef4065897ac0207ea4d151c0a7b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6375ef4065897ac0207ea4d151c0a7b">&#9670;&nbsp;</a></span>Init()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_sock_error.html">CSockError</a> CUdpIoServer::Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_io_socket.html">CUdpIoSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isServer</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>初始化套接字与服务类设备进行绑定 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>与服务端进行绑定的套接字 </td></tr>
    <tr><td class="paramname">isServer</td><td>必须为false </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回SUCC，失败返回相应的错误码 </dd></dl>

<p class="definition">在文件 <a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a> 第 <a class="el" href="_udp_io_server_8h_source.html#l00032">32</a> 行定义.</p>

</div>
</div>
<a id="ad4d4e0b20c08f1caf054dc91353a5460"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad4d4e0b20c08f1caf054dc91353a5460">&#9670;&nbsp;</a></span>IsStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CUdpIoServer::IsStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>服务是否停止 </p>
<dl class="section return"><dt>返回</dt><dd>停止服务返回true,未停止返回false </dd></dl>

<p class="definition">在文件 <a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a> 第 <a class="el" href="_udp_io_server_8h_source.html#l00114">114</a> 行定义.</p>

</div>
</div>
<a id="ac5ff63dd1a6754b019960a29920d572f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5ff63dd1a6754b019960a29920d572f">&#9670;&nbsp;</a></span>NotifyStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoServer::NotifyStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通知服务停止 </p>

<p class="definition">在文件 <a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a> 第 <a class="el" href="_udp_io_server_8h_source.html#l00106">106</a> 行定义.</p>

</div>
</div>
<a id="ad2577dd5e8331ce337669104debe8cc2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2577dd5e8331ce337669104debe8cc2">&#9670;&nbsp;</a></span>Post() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoServer::Post </td>
          <td>(</td>
          <td class="paramtype">const Func &amp;&#160;</td>
          <td class="paramname"><em>func</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a> 第 <a class="el" href="_udp_io_server_8h_source.html#l00080">80</a> 行定义.</p>

</div>
</div>
<a id="a277eeefc4b1368f8868b2e49b11e76ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a277eeefc4b1368f8868b2e49b11e76ba">&#9670;&nbsp;</a></span>Post() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Func &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoServer::Post </td>
          <td>(</td>
          <td class="paramtype">const Func &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a> 第 <a class="el" href="_udp_io_server_8h_source.html#l00084">84</a> 行定义.</p>

</div>
</div>
<a id="a3488239966f8876f08488e873868eda6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3488239966f8876f08488e873868eda6">&#9670;&nbsp;</a></span>Run()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CUdpIoServer::Run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>运行服务 </p>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>

<p class="definition">在文件 <a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a> 第 <a class="el" href="_udp_io_server_8h_source.html#l00093">93</a> 行定义.</p>

</div>
</div>
<a id="adb53d7a1fa2182a80538d188880adc02"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb53d7a1fa2182a80538d188880adc02">&#9670;&nbsp;</a></span>Run_One()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CUdpIoServer::Run_One </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>运行一次服务 </p>
<dl class="section return"><dt>返回</dt><dd>成功返回true，失败返回false </dd></dl>

<p class="definition">在文件 <a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a> 第 <a class="el" href="_udp_io_server_8h_source.html#l00101">101</a> 行定义.</p>

</div>
</div>
<a id="a6d6f189a31f74d0e6ea700f3298992c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d6f189a31f74d0e6ea700f3298992c7">&#9670;&nbsp;</a></span>WaitServerStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpIoServer::WaitServerStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通知服务停止并等待 </p>

<p class="definition">在文件 <a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a> 第 <a class="el" href="_udp_io_server_8h_source.html#l00119">119</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a9fea8deea1c69dfe4229cfe89d900b47"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9fea8deea1c69dfe4229cfe89d900b47">&#9670;&nbsp;</a></span>_service</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt;<a class="el" href="class_c_udp_server.html">CUdpServer</a>&gt; CUdpIoServer::_service</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a> 第 <a class="el" href="_udp_io_server_8h_source.html#l00128">128</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/socket/<a class="el" href="_udp_io_server_8h_source.html">UdpIoServer.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
